package com.ktgj.flight.common.spring;

import com.ktgj.flight.domain.InterfaceEntity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SpringServiceImpl implements SpringService {

    @Autowired
    private _Spring spring;

    //机票查询
    @Override
    public MoFlightSearchResponse flightSearch(MoFlightSearchRequest request) {
        MoFlightSearchResponse response = spring._FlightSearch(request);
        return response;
    }

    //预下单 非会员
    @Override
    public MoCreateOrderResponse orderCreateNormal(MoCreateOrderRequest request) {
        MoCreateOrderResponse response = spring._OrderCreateNormal(request);
        return response;
    }

    //订单查询
    @Override
    public MoQueryOrderResponse queryOrderInfo(MoQueryOrderRequest request) {
        MoQueryOrderResponse response = spring._QueryOrderInfo(request);
        return response;
    }

    //取消订单
    @Override
    public MoCancelOrderResponse cancelOrder(MoCancelOrderRequest request) {
        MoCancelOrderResponse response = spring._CancelOrder(request);
        return response;
    }

    //商旅通支付
    @Override
    public MoOrderPayResponse orderPay(MoOrderPayRequest request) {
        MoOrderPayResponse response = spring._OrderPay(request);
        return response;
    }
}
